<?

/**
 * Implements a recursive iterator for the container elements
 *
 * @category   HTML
 * @package    HTML_QuickForm2
 * @author     Alexey Borzov <avb@php.net>
 * @author     Bertrand Mansion <golgote@mamasam.com>
 * @version    Release: 0.4.0
 */
class jQuickForm_ContainerIterator extends HTML_QuickForm2_ContainerIterator
{
    public function __construct($container)
    {
        parent::__construct($container);
    }

    public function hasChildren()
    {
        return $this->current() instanceof jQuickForm_Container;
    }

    public function getChildren()
    {
        return new jQuickForm_ContainerIterator($this->current());
    }
}
?>